﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hospital.Model;

namespace Hospital.Dao.IDao
{
    public interface IAnnouncementDao
    {
        /// <summary>
        /// 根据Id获取Announcement
        /// </summary>
        /// <param name="gId"></param>
        /// <returns></returns>
        Announcement GetAnnouncementById(Guid gId);

        /// <summary>
        /// 获取所有Announcement
        /// </summary>
        /// <returns></returns>
        IList<Announcement> GetAllAnnouncement();

        /// <summary>
        /// 获取前n条记录
        /// </summary>
        /// <param name="iCount"></param>
        /// <returns></returns>
        IList<Announcement> GetAnnouncement(int iCount);

        /// <summary>
        /// 添加或者更新Announcement
        /// </summary>
        /// <param name="announce"></param>
        /// <returns></returns>
        bool AddOrUpdateAnnouncementr(Announcement announce);

        /// <summary>
        /// 删除Announcement
        /// </summary>
        /// <param name="announce"></param>
        /// <returns></returns>
        bool DeleteAnnouncement(Announcement announce);
    }
}
